﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Collections.Specialized;

namespace SSOClient.Config
{
    internal static class SSOSettingsSection
    {
        private static NameValueCollection _dataContainer;
        static SSOSettingsSection()
        {
            _dataContainer = ConfigurationManager.GetSection("ssoSettings") as NameValueCollection;
            if (_dataContainer == null)
            {
                throw new ConfigurationErrorsException("Can't find configuration/ssoSettings section in config file.");
            }
        }

        public static string GetValue(string key)
        {
            return _dataContainer[key];
        }
    }
}
